/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.shopping.entity.ViewEcCart
   Module Description   :

   Date Created      : 2010/1/1
   Original Author   : ellen.li
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.shopping.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author ellen.li
 * 
 */
@Entity
@Table(name = "EC_VIEW_CART")
public class ViewEcCart extends BaseEntity {
	private static final long serialVersionUID = -8902348850154363152L;
	// @Id
	// @GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_view_cart")
	// @SequenceGenerator(name = "seq_ec_view_cart", sequenceName = "SEQ_EC_VIEW_CART")
	@Id
	@Column(name = "cart_order_prod_id", length = 50)
	private String cartOrderProdId;

	@Column(name = "cart_order_detail_id")
	private String cartOrderDetailId;

	@Column(name = "cart_id", length = 50)
	private String cartId;

	@Column(name = "prod_id")
	private String prodId;

	@Column(name = "prod_name")
	private String prodName;

	@Column(name = "prod_spec_id")
	private String prodSpecId;

	@Column(name = "prod_spec_name")
	private String prodSpecName;

	@Column(name = "qty")
	private String qty;

	@Column(name = "member_id")
	private String memberId;

	@Column(name = "max_count_per_order")
	private String maxCountPerOrder;

	@Column(name = "min_count_per_order")
	private String minCountPerOrder;

	@Column(name = "shelf_price")
	private String shelfPrice;

	@Column(name = "detail_seq")
	private String detailSeq;

	@Column(name = "detail_tp")
	private String detailTp;

	/**
	 * @return the cartId
	 */
	public String getCartId() {
		return cartId;
	}

	/**
	 * @param cartId the cartId to set
	 */
	public void setCartId(String cartId) {
		this.cartId = cartId;
	}

	/**
	 * @return the prodId
	 */
	public String getProdId() {
		return prodId;
	}

	/**
	 * @param prodId the prodId to set
	 */
	public void setProdId(String prodId) {
		this.prodId = prodId;
	}

	/**
	 * @return the prodName
	 */
	public String getProdName() {
		return prodName;
	}

	/**
	 * @param prodName the prodName to set
	 */
	public void setProdName(String prodName) {
		this.prodName = prodName;
	}

	/**
	 * @return the prodSpecId
	 */
	public String getProdSpecId() {
		return prodSpecId;
	}

	/**
	 * @param prodSpecId the prodSpecId to set
	 */
	public void setProdSpecId(String prodSpecId) {
		this.prodSpecId = prodSpecId;
	}

	/**
	 * @return the prodSpecName
	 */
	public String getProdSpecName() {
		return prodSpecName;
	}

	/**
	 * @param prodSpecName the prodSpecName to set
	 */
	public void setProdSpecName(String prodSpecName) {
		this.prodSpecName = prodSpecName;
	}

	/**
	 * @return the qty
	 */
	public String getQty() {
		return qty;
	}

	/**
	 * @param qty the qty to set
	 */
	public void setQty(String qty) {
		this.qty = qty;
	}

	/**
	 * @return the memberId
	 */
	public String getMemberId() {
		return memberId;
	}

	/**
	 * @param memberId the memberId to set
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * @return the maxCountPerOrder
	 */
	public String getMaxCountPerOrder() {
		return maxCountPerOrder;
	}

	/**
	 * @param maxCountPerOrder the maxCountPerOrder to set
	 */
	public void setMaxCountPerOrder(String maxCountPerOrder) {
		this.maxCountPerOrder = maxCountPerOrder;
	}

	/**
	 * @return the minCountPerOrder
	 */
	public String getMinCountPerOrder() {
		return minCountPerOrder;
	}

	/**
	 * @param minCountPerOrder the minCountPerOrder to set
	 */
	public void setMinCountPerOrder(String minCountPerOrder) {
		this.minCountPerOrder = minCountPerOrder;
	}

	/**
	 * @return the shelfPrice
	 */
	public String getShelfPrice() {
		return shelfPrice;
	}

	// public String [] getShelfPrices(){
	// List<String> a= Arrays.asList(arg0)StringUtils.split(shelfPrice,",");
	// String[] b=StringUtils.split(detailSeq,",");
	// TreeMap m= new TreeMap();
	// for(int i=0;i<a.length;i++){
	// m.put(b[i], a[i]);
	// }
	// Collections.
	// return
	// }
	//	
	/**
	 * @param shelfPrice the shelfPrice to set
	 */
	public void setShelfPrice(String shelfPrice) {
		this.shelfPrice = shelfPrice;
	}

	/**
	 * @return the cartOrderDetailId
	 */
	public String getCartOrderDetailId() {
		return cartOrderDetailId;
	}

	/**
	 * @param cartOrderDetailId the cartOrderDetailId to set
	 */
	public void setCartOrderDetailId(String cartOrderDetailId) {
		this.cartOrderDetailId = cartOrderDetailId;
	}

	public String getCartOrderProdId() {
		return cartOrderProdId;
	}

	public void setCartOrderProdId(String cartOrderProdId) {
		this.cartOrderProdId = cartOrderProdId;
	}

	public String getDetailSeq() {
		return detailSeq;
	}

	public void setDetailSeq(String detailSeq) {
		this.detailSeq = detailSeq;
	}

	public String getDetailTp() {
		return detailTp;
	}

	public void setDetailTp(String detailTp) {
		this.detailTp = detailTp;
	}

}
